<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            background: url(./img/bg.webp);
            background-size: cover;
        }
        .box1{
            width: 200px;
            height: 180px;
            background: url(./img/west_01.png);
            background-repeat: no-repeat;
            position: relative;
            left: 212px;
            top: 425px;
             /* 添加一个步骤 分八步完成 */
            animation: steps(8);
            /* 添加自定义名称 */
            animation-name: box1;
            /* 过度类型 */
            transition-timing-function: linear;
            /* 循环次数 */
            animation-iteration-count: infinite;
            /* 过度属性 */
            transition-property: all;
            /* 持续时间 */
            animation-duration: 1s;
            
        }
        .box2{
            width: 200px;
            height: 180px;
            background: url(./img/west_02.png);
            background-repeat: no-repeat;
            position: relative;
            top: 243px;
            left: 450px;
            /* 添加一个步骤 分八步完成 */
            animation: steps(8);
            animation-name: box2;
            transition-timing-function: linear;
            animation-iteration-count: infinite;
            transition-property: all;
            animation-duration: 1s;
        }
        .box3{
            width: 170px;
            height: 240px;
            background: url(./img/west_03.png);
            background-repeat: no-repeat;
            position: relative;
            top: 1px;
            left: 692px;
            animation: steps(8);
            animation-name: box3;
            transition-timing-function: linear;
            animation-iteration-count: infinite;
            transition-property: all;
            animation-duration: 1s;
        }
        .box4{
            width: 210px;
            height: 200px;
            background: url(./img/west_04.png);
            background-repeat: no-repeat;
            position: relative;
            left: 908px;
            top: -200px;
            animation: steps(8);
            animation-name: box4;
            transition-timing-function: linear;
            animation-iteration-count: infinite;
            transition-property: all;
            animation-duration: 1s;
        }

        .box5{
            width: 200px;
            height: 312px;
            background: url(./img/walkingdead.png);
            background-repeat: no-repeat;
            position: relative;
            left: 1380px;
            top: -530px;
            animation: steps(10);
            animation-name: box5;
            transition-timing-function: linear;
            animation-iteration-count: infinite;
            transition-property: all;
            animation-duration: 1s;
        }

        /* 关键帧 */
        @keyframes box1{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1600px;
            }
        }

       @-moz-keyframes box1{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1600px;
            }
        }

        @-webkit-keyframes box1{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1600px;
            }
        }
        @-o-keyframes box1{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1600px;
            }
        }

        @keyframes box2{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1600px;
            }
        }

        @keyframes box3{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1360px;
            }
        }

        @keyframes box4{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -1680px;
            }
        }

        @keyframes box5{
            0%{
                background-position: 0;
            }
            100%{
                background-position: -2000px;
            }
        }
    </style>
</head>
<body>
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
        <div class="box4"></div>
        <div class="box5"></div>
</body>
</html>